package cn.iocoder.yudao.module.crossborder.order.controller.admin.orderitem.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 跨境电商订单明细 Response VO")
@Data
@ExcelIgnoreUnannotated
public class OrderItemRespVO {

    @Schema(description = "订单项编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "26122")
    @ExcelProperty("订单项编号")
    private Long id;

    @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "27906")
    @ExcelProperty("订单编号")
    private Long orderId;

    @Schema(description = "订单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("订单号")
    private String orderNo;

    @Schema(description = "行号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("行号")
    private Integer lineNo;

    @Schema(description = "SPU编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "28306")
    @ExcelProperty("SPU编号")
    private Long spuId;

    @Schema(description = "SKU编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2799")
    @ExcelProperty("SKU编号")
    private Long skuId;

    @Schema(description = "SKU编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("SKU编码")
    private String skuCode;

    @Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("商品名称")
    private String productName;

    @Schema(description = "英文商品名称")
    @ExcelProperty("英文商品名称")
    private String productNameEn;

    @Schema(description = "商品图片")
    @ExcelProperty("商品图片")
    private String productImage;

    @Schema(description = "品牌名称", example = "王五")
    @ExcelProperty("品牌名称")
    private String brandName;

    @Schema(description = "分类名称", example = "张三")
    @ExcelProperty("分类名称")
    private String categoryName;

    @Schema(description = "规格值JSON")
    @ExcelProperty("规格值JSON")
    private String specValues;

    @Schema(description = "条形码")
    @ExcelProperty("条形码")
    private String barcode;

    @Schema(description = "UPC码")
    @ExcelProperty("UPC码")
    private String upcCode;

    @Schema(description = "HS编码")
    @ExcelProperty("HS编码")
    private String hsCode;

    @Schema(description = "原产国代码")
    @ExcelProperty("原产国代码")
    private String originCountry;

    @Schema(description = "购买数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("购买数量")
    private BigDecimal quantity;

    @Schema(description = "单价", requiredMode = Schema.RequiredMode.REQUIRED, example = "11807")
    @ExcelProperty("单价")
    private BigDecimal unitPrice;

    @Schema(description = "总价", requiredMode = Schema.RequiredMode.REQUIRED, example = "13860")
    @ExcelProperty("总价")
    private BigDecimal totalPrice;

    @Schema(description = "货币代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("货币代码")
    private String currencyCode;

    @Schema(description = "折扣金额", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("折扣金额")
    private BigDecimal discountAmount;

    @Schema(description = "优惠券金额", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("优惠券金额")
    private BigDecimal couponAmount;

    @Schema(description = "最终价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "14940")
    @ExcelProperty("最终价格")
    private BigDecimal finalPrice;

    @Schema(description = "重量（kg）")
    @ExcelProperty("重量（kg）")
    private BigDecimal weight;

    @Schema(description = "长度（cm）")
    @ExcelProperty("长度（cm）")
    private BigDecimal length;

    @Schema(description = "宽度（cm）")
    @ExcelProperty("宽度（cm）")
    private BigDecimal width;

    @Schema(description = "高度（cm）")
    @ExcelProperty("高度（cm）")
    private BigDecimal height;

    @Schema(description = "体积（立方米）")
    @ExcelProperty("体积（立方米）")
    private BigDecimal volume;

    @Schema(description = "成本价", example = "1994")
    @ExcelProperty("成本价")
    private BigDecimal costPrice;

    @Schema(description = "利润金额")
    @ExcelProperty("利润金额")
    private BigDecimal profitAmount;

    @Schema(description = "利润率")
    @ExcelProperty("利润率")
    private BigDecimal profitRate;

    @Schema(description = "税率")
    @ExcelProperty("税率")
    private BigDecimal taxRate;

    @Schema(description = "税费")
    @ExcelProperty("税费")
    private BigDecimal taxAmount;

    @Schema(description = "保修期（天）")
    @ExcelProperty("保修期（天）")
    private Integer warrantyPeriod;

    @Schema(description = "是否礼品", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否礼品")
    private Boolean isGift;

    @Schema(description = "礼品留言")
    @ExcelProperty("礼品留言")
    private String giftMessage;

    @Schema(description = "是否定制商品", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否定制商品")
    private Boolean isCustomized;

    @Schema(description = "定制信息JSON")
    @ExcelProperty("定制信息JSON")
    private String customizationInfo;

    @Schema(description = "发货截止时间")
    @ExcelProperty("发货截止时间")
    private LocalDateTime deliveryDeadline;

    @Schema(description = "预计送达日期")
    @ExcelProperty("预计送达日期")
    private LocalDate expectedDeliveryDate;

    @Schema(description = "履约状态（10待处理 20已分配 30拣货中 40已拣货 50已打包 60已发货 70已送达）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("履约状态（10待处理 20已分配 30拣货中 40已拣货 50已打包 60已发货 70已送达）")
    private Integer fulfillmentStatus;

    @Schema(description = "分配仓库编号", example = "24030")
    @ExcelProperty("分配仓库编号")
    private Long allocatedWarehouseId;

    @Schema(description = "已分配数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("已分配数量")
    private BigDecimal allocatedQuantity;

    @Schema(description = "已拣货数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("已拣货数量")
    private BigDecimal pickedQuantity;

    @Schema(description = "已发货数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("已发货数量")
    private BigDecimal shippedQuantity;

    @Schema(description = "已送达数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("已送达数量")
    private BigDecimal deliveredQuantity;

    @Schema(description = "已退货数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("已退货数量")
    private BigDecimal returnedQuantity;

    @Schema(description = "已退款数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("已退款数量")
    private BigDecimal refundedQuantity;

    @Schema(description = "取消原因", example = "不好")
    @ExcelProperty("取消原因")
    private String cancelReason;

    @Schema(description = "备注", example = "你猜")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
